Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Update GrafanaDatasource reconcile loop #1826

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

Baarsgaard
Copy link
Contributor

@Baarsgaard Baarsgaard commented Jan 16, 2025

This was a significantly more complex rewrite than earlier reconcile loops simply due to how different the controller was written.
I recommend to review this one commit at a time and to have at least 2 separate reviewers verify it due to the amount of changes.

I had to split finalize into two separate functions to get past a nasty "Not found" error loop that is correct on an updated uid, but a problem when trying to delete a crd.
I would like some comments on whether ReconcilePlugins is needed in both or just finalize?

See commit messages for detailed changes.

This should close #1681 and tick off GrafanaDatasource on #1450

@github-actions github-actions bot added the documentation Issues relating to documentation, missing, non-clear etc. label Jan 16, 2025
@Baarsgaard Baarsgaard force-pushed the update_datasource_reconcile_loop branch from 5135ecd to 8e81036 Compare January 16, 2025 20:54
@Baarsgaard Baarsgaard force-pushed the update_datasource_reconcile_loop branch 2 times, most recently from 5b51f51 to 8fb05de Compare January 18, 2025 00:15
@Baarsgaard Baarsgaard marked this pull request as ready for review January 18, 2025 00:24
@Baarsgaard Baarsgaard force-pushed the update_datasource_reconcile_loop branch from 8fb05de to 5684fe8 Compare January 18, 2025 11:28
@Baarsgaard Baarsgaard force-pushed the update_datasource_reconcile_loop branch from 5684fe8 to db33aa9 Compare January 21, 2025 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Issues relating to documentation, missing, non-clear etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add finalizer to GrafanaDatasource
1 participant